package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import static org.jsola.hr.example.CompanyEmpInfoRequireExample.*;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【公司员工及员工关联信息所需信息】的参数")
@Data
public class CompanyAllEmpInfoRequireUpdateDTO extends CompanyEmpInfoRequireUpdateDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "【公司员工联系人所需信息】")
    private EmpContactsRequireUpdateDTO contactsRequireUpdateDTO;

    @ApiModelProperty(notes = "【公司员工工作经历所需信息】")
    private EmpWorkRequireUpdateDTO workRequireUpdateDTO;

    @ApiModelProperty(notes = "【公司员工教育经历所需信息】")
    private EmpEducationRequireUpdateDTO educationRequireUpdateDTO;

    @ApiModelProperty(notes = "【公司员工证件信息所需信息】")
    private EmpCardRequireUpdateDTO cardRequireUpdateDTO;

    @ApiModelProperty(notes = "【公司员工培训记录所需信息】")
    private EmpTrainRequireUpdateDTO trainRequireUpdateDTO;

    @ApiModelProperty(notes = "【公司员工证书所需信息】")
    private EmpCertificateRequireUpdateDTO certificateRequireUpdateDTO;

    @ApiModelProperty(notes = N_TAB_CONTACTS, example = E_TAB_CONTACTS)
    private Integer empContactsList;

    @ApiModelProperty(notes = N_TAB_WORK, example = E_TAB_WORK)
    private Integer empWorkList;

    @ApiModelProperty(notes = N_TAB_EDUCATION, example = E_TAB_EDUCATION)
    private Integer empEducationList;

    @ApiModelProperty(notes = N_TAB_CARD, example = E_TAB_CARD)
    private Integer empCardList;

    @ApiModelProperty(notes = N_TAB_TRAIN, example = E_TAB_TRAIN)
    private Integer empTrainList;

    @ApiModelProperty(notes = N_TAB_CERTIFICATE, example = E_TAB_CERTIFICATE)
    private Integer empCertificateList;

    public void setEmpContactsList(Integer empContactsList) {
        setTabContacts(empContactsList);
    }

    public void setEmpWorkList(Integer empWorkList) {
        setTabWork(empWorkList);
    }

    public void setEmpEducationList(Integer empEducationList) {
        setTabEducation(empEducationList);
    }

    public void setEmpCardList(Integer empCardList) {
        setTabCard(empCardList);
    }

    public void setEmpTrainList(Integer empTrainList) {
        setTabTrain(empTrainList);
    }

    public void setEmpCertificateList(Integer empCertificateList) {
        setTabCertificate(empCertificateList);
    }
}

